import java.lang.reflect.Constructor;

public class Counter {
  private String name = "";
  private int counter = 0;

  public Counter(String id) {
    name = id;
  }

  public void increment() {
    counter++;
  }

  public int tally() {
    return counter;
  }

  public String toString() {
    return name + ":" + counter;
  }
}
